\printindex

\label{lastpage}

\end{document}
